﻿@model AuditWeb.Models.ExpertJudgeUpdateModel

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/Admin/_EventSettingLayout.cshtml";
}

<h2><text>学科组</text>@AuditResources.ExpertJudge.ObjectName</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@AuditResources.ExpertJudge.ObjectName</legend>

        @Html.HiddenFor(model => model.ExpertJudge.UserID)
        <div class="editor-label">
            @AuditResources.ExpertJudge.SerialNumber
        </div>
        <div class="editor-field">
            @Html.DisplayFor(mode=>Model.ExpertJudge.SerialNumber)
            @Html.Hidden("ExpertJudge.SerialNumber",Model.ExpertJudge.SerialNumber)
        </div>

         <div class="editor-label">
            @AuditResources.ExpertJudge.RealName
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ExpertJudge.RealName)
            @Html.ValidationMessageFor(model => model.ExpertJudge.RealName)
        </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>               
        <div class="editor-label">
            @AuditResources.ExpertJudge.Phone
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ExpertJudge.Phone)
            @Html.ValidationMessageFor(model => model.ExpertJudge.Phone)
        </div>

        <div class="editor-label">
            @AuditResources.ExpertJudge.AnnualEventId
        </div>
        <div class="editor-field">
            @Html.Display("AnnualEventID")
            @Html.Hidden("ExpertJudge.AnnualEventID",Model.AnnualEventID)
            @Html.ValidationMessageFor(model => model.ExpertJudge.AnnualEventID)
        </div>

        <div class="editor-label">
            @AuditResources.ExpertJudge.SubjectId
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model=>model.ExpertJudge.SubjectID, (SelectList)ViewBag.SubjectID)
            @Html.ValidationMessageFor(model => model.ExpertJudge.SubjectID)
        </div>

        <div class="editor-label">
            @AuditResources.ExpertJudge.ContactAddress
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ExpertJudge.ContactAddress)
            @Html.ValidationMessageFor(model => model.ExpertJudge.ContactAddress)
        </div>

        <div class="editor-label">
            @AuditResources.ExpertJudge.ZipCode
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ExpertJudge.ZipCode)
            @Html.ValidationMessageFor(model => model.ExpertJudge.ZipCode)
        </div>
    </fieldset>
    <div>
<input type="submit" value="@AuditResources.UI.Save" />
    @Html.ActionLink(AuditResources.UI.BackToList, "Index", new { id = ViewBag.AnnualEventID }, new { @class = "button" })
</div>
}


